package com.hoshiicloud.goods.param.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author:campchen
 * @Date:Created in 下午 04:09 2019/7/26
 * @PACKAGENAME com.hoshiicloud.goods.param.goods
 * @Description
 */
@Data
@ApiModel("公共属性添加入参对象")
public class PublicPropertiesAddParam  {
    @ApiModelProperty(value = "租户Id",hidden = true)
    private Long companyId;

    @ApiModelProperty(value = "创建人",hidden = true)
    private String createdBy;

    @ApiModelProperty(value = "属性名")
    @NotBlank(message = "属性名不能为空")
    private String propertyName;

    @ApiModelProperty("属性值")
    @NotNull(message = "属性值不能为空")
    private String propertyValue;
}
